package se.webbzon.oschi01.json;

import java.io.IOException;
import java.io.PrintStream;

public final class JsonNull implements JsonType {

	/**
	 * 
	 */
	private static final long serialVersionUID = -1998423786746281514L;

	@Override public Type getType() {
		return JsonType.Type.Null;
	}
	
	@Override public String toString() {
		return "null";
	}
	
	@Override public int hashCode() {
		return 0;
	}
	
	@Override public JsonNull clone() {
		return this;
	}
	
	@Override public boolean equals(Object obj) {
		return obj instanceof JsonNull; 
	}
	
	@Override public void printTo(PrintStream ps) throws IOException {
		ps.print(toString());
	}
	
}
